package net.neocat.tcx.speed;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: jschek
 * Date: 5/2/13
 * Time: 11:33 PM
 * To change this template use File | Settings | File Templates.
 */
public class ConstantPowerInput implements PowerInput {
    private final double power;

    public ConstantPowerInput(double power) {
        this.power = power;
    }

    @Override
    public double calculatePower(long elapsed, TimeUnit elapsedTimeUnit, double grade) {
        return power;
    }
}
